<!--  -->
<template>
  <div class="news-box">
    <div class="news-gp">
        <div class="news-tl">{{ newsItem.title }}</div>
        <div class="new-ct" v-html="newsItem.introductionPath"></div>
    </div>

  </div>
</template>

<script>
export default {
  data() {
    return {
      newsItem: "",
    };
  },
  components: {},
  mounted() {
    this.getNewsList();
  },
  methods: {
    getNewsList() {
      const id = this.$route.query.id;
      this.$http
        .getNewsDetail(id)
        .then((res) => {
          if (res.flag == 0) {
            this.newsItem = res.data;
            console.log(res);
          }
        })
        .catch((err) => {
          console.log(err);
        });
    },
  },
};
</script>

<style lang='scss' scoped>
</style>
